package org.spl.elevator.controller;

import java.util.ArrayList;

import org.spl.elevator.model.ElevatorDAO;
import org.spl.elevator.model.PanelDAO;

public class ExternalPanelController {	
	public void configPanel(ArrayList<ElevatorDAO> elevators, int numButtons){
		for (int i = 0; i < elevators.size(); i++){
			PanelDAO extPanel = new PanelDAO();
			extPanel.setExternal(true);
			extPanel.setColoringButton(true);
			extPanel.setBrailleButton(true);
			extPanel.setNumButtons(numButtons);
			elevators.get(i).setExternalPanel(extPanel);
		}
	}
}
